package funcs

import (
	"os"
	"fmt"
)

func (f FileUtils)DeleteDir(dir string) error {
	err := os.RemoveAll(dir)
	if err != nil {
		fmt.Errorf("DeleteDir failed: %v", err)
		return err
	}
	return err
}